package cn.ai.shoes.client.entity.vo;

import cn.ai.shoes.common.pojo.entity.PageQueryVo;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.EqualsAndHashCode;

/**
 * 图片上传日志表
 * @TableName image_upload_log
 */
@TableName(value ="oss_upload_log",autoResultMap = true)
@Accessors(chain = true)
@Data
@Schema(name ="图片上传日志表", description = "图片上传日志表")
@EqualsAndHashCode(callSuper = true)
public class OssUploadLogPageVo extends PageQueryVo {
    /**
     * 日志ID
     */
    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 上传用户ID（关联用户表）
     */
    @Schema(description = "上传用户ID（关联用户表）")
    private Long userId;

    /**
     * 上传用户名
     */
    @Schema(description = "上传用户名")
    private String username;
    /**
     * 用户简称
     */
    @Schema(description = "用户简称")
    private String nickname;

    /**
     * 上传用户角色
     */
    @Schema(description = "上传用户角色")
    private String role;

    /**
     * oss文件存储路径
     */
    @Schema(description = "oss文件存储路径")
    private String ossPath;
    /**
     * 文件名
     */
    @Schema(description = "oss文件名")
    private String ossName;

    /**
     * comfyui 服务器地址
     */
    @Schema(description = "comfyui上传表ids")
    private String cfUploadIds;
    /**
     *原始文件引用
     */
    @Schema(description = "蒙版原始文件ID")
    private Integer originalId;
    /**
     * 上传时间（自动记录）
     */
    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    /**
     * 上传时间（自动记录）
     */
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "逻辑删除")
    @TableLogic
    private Integer deleted;

    @Schema(description = "用户唯一标识")
    private String uid;
}
